home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
EDITOR
/
9QTIPS.ARJ
/
TECH6.MSG
< prev
next >
Wrap
Text File
|
1992-08-05
|
6KB
|
125 lines
A QEdit Tip from the SemWare Technical Support Staff
.. Manipulating Marked Blocks (Part A)..
QEdit provides several ways to manipulate a marked Block.
Manipulation can be done directly, using the scrap buffer
(Clipboard), or using the scratch buffers. Following is a
description of each of QEdit's block manipulation commands along
with our default key combinations.
Manipulating Directly
~~~~~~~~~~~~~~~~~~~~~
The following commands allow you to manipulate a marked Block
directly.
CopyBlock <Alt C> - will make a copy of the marked Block and
insert it where you decide. This can be either in another
place in the same file, or in another file. To use this
command, mark the Block and move the cursor to the position
where you wish to insert the marked text. Now press <Alt C>
and notice the Block will be inserted at the new position.
To unmark the copied Block, enter the UnmarkBlock command.
CopyOverBlock <Alt Z> - will work just like the CopyBlock
command except the Block is copied to the current cursor
position by overlaying the existing text. The command can
_only_ be used with column Blocks. The Block will be
inserted without shifting the text to the right.
MoveBlock <Alt M> - will work just like the CopyBlock command
except that upon entering the MoveBlock command, the
original marked Block is deleted from the file.
DeleteBlock <Alt G> - will delete a marked Block of text from
the file. To use this command, mark the Block of text to be
deleted, then enter the DeleteBlock command.
ShiftLeft <Shift 7> and ShiftRight <Shift F8> - will shift the
text contained in a marked Block one column to the left or
right. To use these commands, mark the Block and enter the
ShiftLeft or ShiftRight command. If there is not a marked
Block or the cursor is outside of the Block, the current
cursor line will be shifted.
Manipulating Using the Scrap Buffer (Clipboard)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Scrap Buffer is a temporary holding area for marked Blocks
of text. The commands Cut, Copy, Paste, and PasteOver are
solely responsible for manipulating text to and from the Scrap
Buffer.
Cut <grey -> - will copy the marked Block into the Scrap Buffer.
The Block is then deleted from the file being edited. If no
Block is marked, the cursor line is cut into the Scrap
Buffer.
Copy <grey +> - will copy the marked Block into the Scrap
Buffer and then unmark the Block. If no Block is marked,
the cursor line is copied into the Scrap Buffer.
Paste <grey *> - will insert the contents of the Scrap Buffer to
the current cursor position. If the Scrap Buffer contains a
character or column Block, it is inserted at the cursor
position. If the Scrap Buffer contains a line Block, it is
inserted before or after the cursor line depending on the
configuration setting.
PasteOver <Ctrl PrtSc> - will work like the Paste command, but
for column Blocks. It takes a column Block which has been
loaded into the Scrap Buffer using the Cut or Copy commands
and places it at the current cursor position by overlaying
the existing text and without shifting text to the right.
When you issue a Copy or Cut command, the marked Block is placed
in the Scrap Buffer. The next time you Copy or Cut a Block into
the Scrap Buffer, the previous contents of the Scrap Buffer are
deleted and replaced with the new Block.
You can use the Paste and PasteOver commands as many times as
needed to insert a copy of the Block held in the Scrap Buffer at
multiple positions in your file or files. The Paste and
PasteOver commands will not purge the contents of the Scrap
Buffer.
The Cut and Copy commands can be configured to act on the
current cursor line if no Block is marked. This option can be
customized using the configuration program QCONFIG.EXE. Run
QCONFIG.EXE, select A)dvanced options, and return till you get
to the option that reads:
Should Cut and Copy use the current line if no block
marked (Y/N)? [N]
The default configuration is set to <N> and will result in no
action if the Cut and Copy commands are used outside of a block.
If set to <Y>, QEdit will take use the current cursor line if
the Cut and Copy commands are issued.
Manipulating Using the Scratch Buffer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
A Scratch Buffer is a special type of buffer to which you assign
a name. QEdit allows you to create and name up to 99 Scratch
Buffers for each editing session. These can be useful if you
have several different Blocks of text that you want to insert in
multiple locations. The commands StoreScrbuff, AppendScrbuff,
and GetScrbuff are used to place text in, and retrieve text
from, a Scratch Buffer. Whenever you issue one of these
commands, QEdit will ask you for the name of the Scratch Buffer.
The contents of all Scratch Buffers are discarded when the
editor is terminated.
StoreScrbuff <Ctrl B><S> - will copy the marked Block to the
named Scratch Buffer. The editor will prompt for the name
of the Scratch Buffer.
AppendScrbuff <Ctrl B><A> - will append the marked Block to the
end of the named Scratch Buffer. The existing contents of
the named Scratch Bufferss are _not_ lost. If the named
Scratch Buffer does not exist, a new Scratch Buffer will be
created.
GetScrbuff <Ctrl B><L> - will insert the contents of the named
Scratch Buffer at the cursor position.